package cn.jdy.plugins.entity;

import java.io.Serializable;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;

import cn.jdy.common.bo.BaseEntry;

/**
 * @desc   投票项目实体
 * @author ningqian
 * @date   2016-7-4
 */
@Entity
public class EvaluationProject extends BaseEntry implements Serializable {

	private static final long serialVersionUID = 1L;

	@Id
	@GeneratedValue(strategy = GenerationType.AUTO)//根据数据库自动适配 mysql默认自增
	private Long id;              //主键
	private String name;          //名称
	@Column(columnDefinition = "longtext")
	private String valueExplain;  //价值说明
	private String ageGroup;      //
	@ManyToOne
	@JoinColumn(name = "liveId", insertable = false, updatable = false)
	private Live live;
	private Long liveId;
	private String insertTime;    //添加时间
	private int isCount;  //1显示。 2 不显示  是否显示统计结果
	private int isDt;  //是否只能投一次 1多。 2 不
	
	private String remarks1;      //备注1
	private String remarks2;      //备注2
	private String remarks3;      //备注3
	
	public int getIsDt() {
		return isDt;
	}
	public void setIsDt(int isDt) {
		this.isDt = isDt;
	}
	public int getIsCount() {
		return isCount;
	}
	public void setIsCount(int isCount) {
		this.isCount = isCount;
	}
	public Live getLive() {
		return live;
	}
	public void setLive(Live live) {
		this.live = live;
	}
	public Long getLiveId() {
		return liveId;
	}
	public void setLiveId(Long liveId) {
		this.liveId = liveId;
	}
	public Long getId() {
		return id;
	}
	public void setId(Long id) {
		this.id = id;
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public String getValueExplain() {
		return valueExplain;
	}
	public void setValueExplain(String valueExplain) {
		this.valueExplain = valueExplain;
	}
	public String getAgeGroup() {
		return ageGroup;
	}
	public void setAgeGroup(String ageGroup) {
		this.ageGroup = ageGroup;
	}
	public String getInsertTime() {
		return insertTime;
	}
	public void setInsertTime(String insertTime) {
		this.insertTime = insertTime;
	}

	public String getRemarks1() {
		return remarks1;
	}
	public void setRemarks1(String remarks1) {
		this.remarks1 = remarks1;
	}
	public String getRemarks2() {
		return remarks2;
	}
	public void setRemarks2(String remarks2) {
		this.remarks2 = remarks2;
	}
	public String getRemarks3() {
		return remarks3;
	}
	public void setRemarks3(String remarks3) {
		this.remarks3 = remarks3;
	}

}
